package com.share.design.status.demo;

import lombok.Getter;
import lombok.Setter;

/**
 * author:caifan
 * date:2020/2/6
 */
public class Context {
    @Getter
    @Setter
    private State state;

    public Context(State state) {
        this.state = state;
    }

    public void request() {
        state.handle(this);
    }

}
